<?php
namespace App\Http\Controllers\Api\V1;
/**
 * Created by PhpStorm.
 * User: dolia
 * Date: 2016/4/5
 * Time: 11:43
 */
use App\Exceptions\Api\ApiDoneErrorException;
use App\Exceptions\Api\ApiInputErrorException;
use App\Exceptions\Api\ApiRsaEecryptErrorException;
use App\Exceptions\Api\ApiUserNotLoginErrorException;
use App\Exceptions\Api\ApiValidateErrorException;
use App\Http\Controllers\Controller;
use App\Interfaces\AdService;
use App\Interfaces\ActivityService;
use App\Interfaces\CategoryService;
use App\Interfaces\RecommendPositionService;
class HomeController extends Controller
{
    public function index(AdService $adService,ActivityService $activityService, CategoryService $categoryService,RecommendPositionService $recommendPositionService)
    {
        //dd("Dgag");
        $data = array();
        $position_key = 'index_focus';
        $biaopin = 'index_baopin';
        $jingxuan = 'index_jingxuan';
        $ads = $adService->get($position_key)->toArray();
        $data['ads']=$ads;
        $activitys = $activityService->getRecommendActivity()->toArray();
        $data['activitys'] = $activitys;
        dd($data);

    }
}

